<template>
    <aside class="admin-sidebar">
      <nav>
        <router-link to="/admin/dashboard" class="sidebar-item">
          <i class="fas fa-tachometer-alt"></i>
          <span>控制面板</span>
        </router-link>
        
        <router-link to="/admin/users" class="sidebar-item">
          <i class="fas fa-users"></i>
          <span>用户管理</span>
        </router-link>
        
        <router-link to="/admin/articles" class="sidebar-item">
          <i class="fas fa-file-alt"></i>
          <span>文章管理</span>
        </router-link>
        
        <router-link to="/admin/settings" class="sidebar-item">
          <i class="fas fa-cog"></i>
          <span>系统设置</span>
        </router-link>
      </nav>
    </aside>
  </template>
  
  <script setup>
  import { useRouter } from 'vue-router'
  const router = useRouter()
  </script>
  
  <style scoped>
  .admin-sidebar {
    width: 220px;
    background-color: #343a40;
    color: white;
    height: 100vh;
    position: sticky;
    top: 0;
  }
  
  .sidebar-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s;
  }
  
  .sidebar-item:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
  }
  
  .sidebar-item.router-link-active {
    background-color: rgba(255,255,255,0.2);
    color: white;
  }
  
  .sidebar-item i {
    width: 24px;
    text-align: center;
    margin-right: 10px;
  }
  </style>